<%@ page import="registerallocator.Competencia" %>



<div class="fieldcontain ${hasErrors(bean: competenciaInstance, field: 'disciplinas', 'error')} ">
	<label for="disciplinas">
		<g:message code="competencia.disciplinas.label" default="Disciplinas" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${competenciaInstance?.disciplinas?}" var="d">
    <li><g:link controller="disciplina" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="disciplina" action="create" params="['competencia.id': competenciaInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'disciplina.label', default: 'Disciplina')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: competenciaInstance, field: 'professor', 'error')} required">
	<label for="professor">
		<g:message code="competencia.professor.label" default="Professor" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="professor" name="professor.id" from="${registerallocator.Professor.list()}" optionKey="id" required="" value="${competenciaInstance?.professor?.id}" class="many-to-one"/>
</div>

